<template>
	<div>
		<!-- <div v-html="res"></div> -->
		<div id="parent"></div>
	</div>
</template>

<script>
	import Vue from 'vue';
	var MyComponent = Vue.extend({
		template: '<a @click="show(1)">我是大魔王</a>',
		methods: {
			show(i) {
				console.log(i);
			},
		}
	});
	var component = new MyComponent().$mount();
	export default {
		data() {
			return {
				
			}
		},
		mounted() {
			document.getElementById('parent').appendChild(component.$el);
		},
		methods: {
			
		}
	}
</script>

<style>
</style>
